package com.oreilly.ez.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "walle_tag")
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class WalleTag {

    @Id
    @GeneratedValue
    private Integer sid;
    private String scode;
    private String note;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date udate;

    @Column(name = "tag_name")
    private String tagName;
}
